package com.example.costumview.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.example.costumview.R;
import com.example.costumview.customview.ShadowLayerView;

public class ShadowLayerActivity extends AppCompatActivity {

    private ShadowLayerView mShadowLayerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shadow_layer);
        mShadowLayerView = findViewById(R.id.shadowlayerview);
    }

    public void setShadow(View view) {
        mShadowLayerView.setShadow(true);
    }

    public void clearShadow(View view) {
        mShadowLayerView.setShadow(false);
    }
}